<%@ page language="java" session="true" errorPage="ElderhealthError.jsp"%>
<%
/*
 * Source:   ElderhealthError.jsp
 * Purpose:  This page will take in information from an error and display it to the screen.
 */
%>

<html>
<head>
<link rel="stylesheet" type="text/css" href="elderhealth.css">
<!-- Scripting Portion -->
<script type="text/javascript" src="elderhealth.js"></script>
</head>
<body>

<%@ include file="ElderhealthHeader.jsp" %>

<%
	/* Retrieve Error from the passed parameters */
	String errorCode = request.getParameter("errorCode");
	String errorMessage = request.getParameter("errorMessage");
    if (errorCode == null || errorCode.equals(""))
	{
	  errorCode = "-9999";
	}
	if (errorMessage == null || errorMessage.equals(""))
	{
	  errorMessage = "Unknown error. Error not passed to page for displaying.";
	}
%>

<table border=0 align="left" border=0 cellpadding=0 cellspacing=0 width="600">
    <tr class="contactHeaderText"><td height="18" align="left" valign="middle" style="PADDING-LEFT:10px">Error Page</td></tr>
    <tr><td class="layoutLine" valign="middle" align="left" width="302" height="1" colSpan="4"></td></tr>
    <tr class="contactBar1"><td align="left" valign="middle" style="PADDING-LEFT:10px">
    	An error occurred on the previous page. <br>
		Error code is: <%=errorCode%> <br>
		Error message is: <%=errorMessage%>
    </td></tr>
    <tr><td class="layoutLine" valign="middle" align="left" width="302" height="1" colSpan="4"></td></tr>
</table>

</body>
</html>

